import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_cms_page",{schema:"fastadmin" } )
@Index("type",["type",])
export class fa_cms_page {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"category_id"
        })
    category_id:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"type"
        })
    type:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"title"
        })
    title:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"keywords"
        })
    keywords:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"description"
        })
    description:string;
        

    @Column("enum",{ 
        nullable:false,
        name:"flag"
        })
    flag: string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"image"
        })
    image:string;
        

    @Column("text",{ 
        nullable:true,
        name:"content"
        })
    content:string | null;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"icon"
        })
    icon:string;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"views"
        })
    views:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"likes"
        })
    likes:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"dislikes"
        })
    dislikes:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"comments"
        })
    comments:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"diyname"
        })
    diyname:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"showtpl"
        })
    showtpl:string;
        

    @Column("int",{ 
        nullable:true,
        name:"createtime"
        })
    createtime:number | null;
        

    @Column("int",{ 
        nullable:true,
        name:"updatetime"
        })
    updatetime:number | null;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"weigh"
        })
    weigh:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"status"
        })
    status:string;
        
}
